//
//  Quartz2dCtr.m
//  iOSDemo
//
//  Created by mokai on 14-10-10.
//  Copyright (c) 2014年 mokai. All rights reserved.
//

#import "Quartz2dCtr.h"
#import <QuartzCore/QuartzCore.h>

@interface Quartz2dCtr ()

@end

@implementation Quartz2dCtr

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    //UIBezierPath
    //CAShapeLayer
    //CAGradientLayer
    
    
    
    CAShapeLayer *layer = [CAShapeLayer new];
    
    CGPathRef path = [UIBezierPath bezierPathWithRect:CGRectMake(0, 340, 100, 100)].CGPath;
    layer.path = path;
    layer.lineCap = kCALineCapRound;
    layer.fillColor = [UIColor redColor].CGColor;
    [self.view.layer addSublayer:layer];
    
    
    
    
    
}







@end
